import request from '@/utils/request'
// 获取文章分类
export const getCategoryAPI = () => {
  return request.get('/my/cate/list')
}
// 添加类别的方法
export const addCategoryAPI = data => {
  return request.post('/my/cate/add', data)
}

// 删除分类的方法
export const deleteCategoryAPI = id => {
  return request.delete('/my/cate/del', { params: { id } })
}

// 修改分类的方法
export const updateCategoryAPI = obj => {
  return request.put('/my/cate/info', obj)
}
